package com.lucy.nepu.module.htopic.rule;


import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author kindear
 * 横向课题类型校验器
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IsHorTopicTypeValidator.class)
public @interface IsHorTopicType {
    String message() default "横向课题类型错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
